package cn.gok.studentsystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.io.Serializable;
import java.util.Date;
import java.util.List;


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("class")
public class Class implements Serializable {
    @TableId(value = "cid",type = IdType.AUTO)
    private Long cid;
    private String cname;
    @Version
    private Integer version;
    @TableField(fill = FieldFill.INSERT)
    private Date create_time;
    @TableField(fill = FieldFill.INSERT)
    private Date update_time;

    @TableField(exist = false)
    private List<Student> studentList;
}
